<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>注册</title>
<meta name="author" content="S" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" type="text/css" href="<?php echo theme_url('css/common.css');?>" />
<?php echo js_plugin('jquery');?>
<script type="text/javascript">
	$(document).ready(function(){
		$("#register_form").submit(function(){
			var username = $("#username").val();
			var password = $("#password").val();
			var rpassword = $("#rpassword").val();
			var email = $("#email").val();
			if ($.trim(username)=='')
			{
				alert('请输入用户名');
				return false;
			}
			
			if ($.trim(password)=='')
			{
				alert('请输入密码');
				return false;
			}
			
			if ($.trim(password)!=$.trim(rpassword))
			{
				alert('两次密码不一致');
				return false;
			}
			
			return true;
		});
	});
</script>
</head>
<body>
	<div class="wrap">
		<form id="register_form" action="<?php echo current_url();?>" method="post">
			<input type="text" name="username" value="" id="username" class="text" /><br />
			<input type="password" name="password" value="" id="password" class="text" /><br />
			<input type="password" name="rpassword" value="" id="rpassword" class="text" /><br />
			<input type="text" name="email" value="" id="email" class="text" /><br />
			<input type="submit" value="提交" class="button" />
		</form>
	</div>
</body>
</html>